import 'package:json_annotation/json_annotation.dart';

part 'tourism.g.dart';

@JsonSerializable()
class TourismModel {

  /// 图片地址
  String imgUrl;

  /// 描述
  String describe;

  /// 头像
  String avatar;

  /// 浏览
  double browse;

  /// 昵称
  String nickname;

  bool video;

  TourismModel({ required this.imgUrl, required this.describe, required this.avatar, required this.browse, required this.nickname, this.video = false });

  factory TourismModel.fromJson(Map<String, dynamic> json) => _$TourismModelFromJson(json);

  Map<String, dynamic> toJson() => _$TourismModelToJson(this);

  @override
  String toString() {
    return toJson().toString();
  }
}